package com.ceba.test.base.enums;

import com.aspose.pdf.Operator;
import com.ceba.test.base.language.ResourceUtils;
import org.apache.commons.lang.StringUtils;

public enum BeKyeEnum {

	DEFAULT_NONE("0","不使用公共证书"),
	PUBLIC_CER_KEY("1","KEY公共证书 及服务器Key(服务端签名)");
	private String code;
	private String name;
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private BeKyeEnum(String code, String name){
		this.code = code;
		this.name = name;
	}

	public static String queryNameByCode(String code){
		if(code.equals(DEFAULT_NONE.code)){
			return ResourceUtils.getMessage("REGISTER_CLIENT_MODE");
		}else{
			return ResourceUtils.getMessage("REGISTER_SERVER_SIDE_MODE");
		}
	}
	
}
